﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
	CodeFile="Reports.aspx.cs" Inherits="Hipocrate_Reports" Title="Untitled Page" %>

<%@ MasterType VirtualPath="~/MasterPage.master" %>
<%@ Register Namespace="NS_Controls" TagPrefix="cc1" %>
<%@ Register Namespace="EditorControlCustom" TagPrefix="HTMLEditor" %>
<%@ Register Namespace="CustomControlsNS" TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderContent" runat="Server">
	<link href="../Styles/themes/fancy/tabs.css" rel="stylesheet" type="text/css" />
	<link href="../Styles/themes/fancy/fancy-blue/fancy-blue.css" rel="stylesheet" type="text/css" />
	<asp:UpdatePanel ID="upReports" runat="server" UpdateMode="Conditional">
		<ContentTemplate>
			<asp:Button ID="btnSaveReport" runat="server" Text="" Style="display: none" OnClick="btnSaveReport_Click" /><br />
			<asp:TextBox ID="txtLastTab" runat="server" Style="display: none" />
			<ajaxToolKit:TabContainer ID="TabContainer1" runat="server" CssClass="fancy fancy-blue">
				<ajaxToolKit:TabPanel runat="server" ID="tabConfigure" HeaderText="Configurare Rapoarte">
					<ContentTemplate>
						<table>
							<tr>
								<td valign="top">
									<fieldset style="padding: 2px 2px 2px 2px;">
										<legend title="">Date generale:</legend>
										<div>
											<table>
												<tr>
													<td>
														<asp:Label ID="lblName" runat="server" Text="Nume raport:" />
													</td>
													<td>
														<asp:TextBox ID="txtName" runat="server" Text="" />
														<ajaxToolKit:TextBoxWatermarkExtender ID="txtNameWM" runat="server" TargetControlID="txtName"
															WatermarkText="Completeaza nume..." WatermarkCssClass="watermarked" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblDatabase" runat="server" Text="Nume baza de date:" />
													</td>
													<td>
														<asp:TextBox ID="txtDatabase" runat="server" Text="" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblProcedure" runat="server" Text="Nume procedura:" />
													</td>
													<td>
														<asp:TextBox ID="txtProcedure" runat="server" Text="" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblCategory" runat="server" Text="Categorie raport:" />
													</td>
													<td>
														<asp:DropDownList ID="drpCategory" runat="server" Width="100%" />
													</td>
												</tr>
											</table>
										</div>
									</fieldset>
								</td>
								<td valign="top">
									<fieldset style="padding: 2px 2px 2px 2px;">
										<legend title="">Setari coloane:</legend>
										<div>
											<table>
												<tr>
													<td>
														<asp:Label ID="lblColumnName" runat="server" Text="Nume coloane raport:" />
													</td>
													<td>
														<asp:TextBox ID="txtColumnName" runat="server" TextMode="MultiLine" Height="30px" />&nbsp;<font
															style="color: Red">*Ex:Col1;Col2;</font>
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblEnableColumnSum" runat="server" Text="Activeaza Coloana Suma:" />
													</td>
													<td>
														<asp:CheckBox ID="chkEnableColumnSum" runat="server" AutoPostBack="True" OnCheckedChanged="CheckSum_Clicked" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblColumnSum" runat="server" Text="Suma pe coloanele:" />
													</td>
													<td>
														<asp:TextBox ID="txtColumnSum" Enabled="false" runat="server" />&nbsp;<font style="color: Red">*Ex:2;3;</font>
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblColumnFormula" runat="server" Text="Activeaza Coloana Formula:" />
													</td>
													<td>
														<asp:CheckBox ID="chkColumnFormula" runat="server" AutoPostBack="True" OnCheckedChanged="CheckFormula_Clicked" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblFormula" runat="server" Text="Nume coloane formula:" />
													</td>
													<td>
														<asp:TextBox ID="txtFormula" Enabled="false" runat="server" />&nbsp;<font style="color: Red">*Ex:C1;C2;</font>
													</td>
												</tr>
											</table>
										</div>
									</fieldset>
								</td>
								<td valign="top">
									<fieldset style="padding: 2px 2px 2px 2px;">
										<legend title="">Setari avansate:</legend>
										<div>
											<table>
												<tr>
													<td>
														<asp:Label ID="lblColumnSpan" runat="server" Text="Activeaza span coloana:" />
													</td>
													<td>
														<asp:CheckBox ID="chkColumnSpan" runat="server" AutoPostBack="True" OnCheckedChanged="CheckSpan_Clicked" />
													</td>
												</tr>
												<tr runat="server" id="trDetaliiColSpan">
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblColumnSpanEnumeration" runat="server" Text="Span pe coloanele:" />
													</td>
													<td>
														<asp:TextBox ID="txtColumnSpanEnumeration" Enabled="false" runat="server" />&nbsp;
														<font style="color: Red">*Ex: <b>2</b><i>:11</i>;<b>15</b><i>:3</i>;</font>
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblSpanTitle" runat="server" Text="Nume coloane span:" />
													</td>
													<td>
														<asp:TextBox ID="txtSpanTitle" Enabled="false" runat="server" />&nbsp; <font style="color: Red">
															*Ex:Nume1;Nume2;Nume3;</font>
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblMultiple" runat="server" Text="Activeaza multi-raport:" />
													</td>
													<td>
														<asp:CheckBox ID="chkMultiReports" runat="server" AutoPostBack="True" OnCheckedChanged="Check_Clicked" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblHidden" runat="server" Text="Ascunde coloanele:" />
													</td>
													<td>
														<asp:TextBox ID="txtHiddenColumns" runat="server" />&nbsp;<font style="color: Red">*Ex:
															2;3;</font>
													</td>
												</tr>
											</table>
										</div>
									</fieldset>
								</td>
							</tr>
						</table>
						<br />
						<fieldset style="padding: 2px 2px 2px 2px;">
							<legend title="">Editeaza Raport:</legend>
							<div>
								<table>
									<tr>
										<td>
											<asp:Label ID="lblHeader" runat="server" Text="Header:" />
										</td>
										<td>
											<fieldset style="padding: 2px 2px 2px 2px;">
												<legend title="">Content:</legend>
												<asp:TextBox ID="txtHeader" runat="server" TextMode="MultiLine" Height="50px" Width="600" />
											</fieldset>
										</td>
									</tr>
									<tr>
										<td>
											<asp:Label ID="lblTitle" runat="server" Text="Title:" />
										</td>
										<td>
											<fieldset style="padding: 2px 2px 2px 2px;">
												<legend title="">Content:</legend>
												<asp:TextBox ID="txtTitle" runat="server" TextMode="MultiLine" Height="50px" Width="600" />
											</fieldset>
										</td>
									</tr>
									<tr>
										<td>
											<asp:Label ID="lblFooter" runat="server" Text="Footer:" />
										</td>
										<td>
											<fieldset style="padding: 2px 2px 2px 2px;">
												<legend title="">Content:</legend>
												<asp:TextBox ID="txtFooter" runat="server" TextMode="MultiLine" Height="50px" Width="600" />
											</fieldset>
											<font style="color: Red">*Pentru a intrerupe randul folositi &b</font><br />
											<font style="color: Red">*Pentru a introduce spatiu folositi &s</font>
										</td>
									</tr>
								</table>
							</div>
						</fieldset>
						<br />
					</ContentTemplate>
				</ajaxToolKit:TabPanel>
				<ajaxToolKit:TabPanel runat="server" ID="tab2" HeaderText="Vizualizare rapoarte">
					<ContentTemplate>
						<div>
							<table>
								<tr>
									<td>
										<asp:Literal ID="startDate" runat="server" Text="De la data:" />
										<asp:TextBox ID="txtStart_Date" runat="server" BorderStyle="Groove" />
										<ajaxToolKit:FilteredTextBoxExtender ID="filtClosing_Date" runat="server" TargetControlID="txtStart_Date"
											ValidChars="/-.0123456789">
										</ajaxToolKit:FilteredTextBoxExtender>
										<ajaxToolKit:CalendarExtender ID="extStart_Date" BehaviorID="Calendar1" runat="server"
											TargetControlID="txtStart_Date" PopupButtonID="imgCalStart" Animated="true" />
									</td>
									<td>
										<asp:Literal ID="endDate" runat="server" Text="Pana la data:" />
										<asp:TextBox ID="txtEnd_Date" runat="server" BorderStyle="Groove" />
										<ajaxToolKit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
											TargetControlID="txtEnd_Date" ValidChars="/-.0123456789">
										</ajaxToolKit:FilteredTextBoxExtender>
										<ajaxToolKit:CalendarExtender ID="extEnd_Date" BehaviorID="Calendar2" runat="server"
											TargetControlID="txtEnd_Date" PopupButtonID="imgCalStart" Animated="true" />
									</td>
								</tr>
							</table>
						</div>
						<br />
						<fieldset style="padding: 2px 2px 2px 2px;">
							<legend title="">Vizualizare rapoarte:</legend>
							<div>
								<asp:Repeater ID="rptParentView" runat="server" OnItemDataBound="ParentRepeater_ItemDataBound">
									<HeaderTemplate>
										<table border="1" class="clsTable" cellpadding="3" cellspacing="0" width="100%" style="position: relative">
									</HeaderTemplate>
									<ItemTemplate>
										<tr>
											<td>
												<div id="divExpand" onclick="ShowHideDisplay(divContentDisplay_<%# (Eval("[ID]") )%>, img_down_rightDisplay_<%# (Eval("[ID]") )%>);"
													style="cursor: hand">
													<img id="img_down_rightDisplay_<%# (Eval("[ID]") )%>" alt="" src="../Images/Hipocrate/icon_down.gif" />
													<span>
														<%# Eval("[Name]") %></span>
												</div>
												<div id="divContentDisplay_<%# (Eval("[ID]") )%>" style="display: block;">
													<asp:Repeater ID="ChildRepeater" runat="server" OnItemDataBound="rptChild_ItemDataBound"
														OnItemCreated="rptChild_ItemCreated">
														<HeaderTemplate>
															<table border="1" class="clsTable" cellpadding="3" cellspacing="0" width="100%">
														</HeaderTemplate>
														<ItemTemplate>
															<tr>
																<td style="width: 20px">
																	<asp:Image ID="arrow" runat="server" ImageUrl="~/Images/Hipocrate/icon_ucp.gif" Style="cursor: hand"
																		title="Report" />
																</td>
																<td style="width: 60%">
																	<fieldset>
																		<asp:LinkButton ID="hpLnk" runat="server" CommandArgument='<%# (Eval("[ID]") )%>'
																			OnClick="btnViewReport_Click" Enabled="false">
																		<div id="lblReportCustom_<%# (Eval("[ID]") )%>" 
																			class="aLink" style="cursor: hand">
																			<%# Eval("[Name]") %>
																		</div>
																		</asp:LinkButton>
																	</fieldset>
																</td>
																<td style="width: 5%">
																	<asp:DropDownList ID="drpTypeExport" runat="server" Width="60px">
																		<asp:ListItem Value="PDF">PDF</asp:ListItem>
																		<asp:ListItem Value="Word">Word</asp:ListItem>
																		<asp:ListItem Value="Excel">Excel</asp:ListItem>
																	</asp:DropDownList>
																	<div id="verticalSpace" runat="server" visible="false"><br /></div>
																	<asp:Button ID="btnExport" runat="server" Text="Export"
																		OnClick="btnExportSIUI_Click" Visible="false" />
																</td>
																<td>
																	<asp:Label runat="server" ID="lblID" Text='<%# Eval("[ID]") %>' Visible="false" />
																	<asp:Button ID="btnParameter" runat="server" Text="Input Parameters" OnClick="btnEditParameter_Click" />
																	<div id="divParameter" runat="server" style="display: none;">
																		<asp:Table ID="tblCriterias" runat="server" />
																	</div>
																</td>
															</tr>
														</ItemTemplate>
														<FooterTemplate>
															</table>
														</FooterTemplate>
													</asp:Repeater>
												</div>
											</td>
										</tr>
									</ItemTemplate>
									<FooterTemplate>
										</table>
									</FooterTemplate>
								</asp:Repeater>
							</div>
						</fieldset>
					</ContentTemplate>
				</ajaxToolKit:TabPanel>
				<ajaxToolKit:TabPanel runat="server" ID="tab3" HeaderText="Reconfigurare Rapoarte"
					Visible="true">
					<ContentTemplate>
						<fieldset style="padding: 2px 2px 2px 2px;">
							<legend title="">Reconfigurare rapoarte:</legend>
							<div>
								<asp:Repeater ID="ParentRepeaterEdit" runat="server" OnItemDataBound="ParentRepeater_ItemDataBound">
									<HeaderTemplate>
										<table class="clsTable" cellpadding="3" cellspacing="0" width="100%">
									</HeaderTemplate>
									<ItemTemplate>
										<tr>
											<td>
												<div id="divExpand" onclick="ShowHide(divContent_<%# (Eval("[ID]") )%>, img_down_right<%# (Eval("[ID]") )%>);"
													style="cursor: hand">
													<img id="img_down_right<%# (Eval("[ID]") )%>" alt="" src="../Images/Hipocrate/icon_down.gif" />
													<span>
														<%# Eval("[Name]") %></span>
												</div>
												<div id="divContent_<%# (Eval("[ID]") )%>" style="display: block;">
													<asp:Repeater ID="ChildRepeater" runat="server">
														<HeaderTemplate>
															<table border="1" class="clsTable" cellpadding="3" cellspacing="0" width="100%">
														</HeaderTemplate>
														<ItemTemplate>
															<tr>
																<td style="width: 20px">
																	<asp:Image ID="arrow" runat="server" ImageUrl="~/Images/Hipocrate/icon_ucp.gif" Style="cursor: hand"
																		title="Report" />
																</td>
																<td>
																	<div id="lblReportCustom_<%# (Eval("[ID]") )%>" class="aLink" style="width: 200px">
																		<%# Eval("[Name]") %>
																	</div>
																</td>
																<td>
																	<div style="width: 300px">
																		<asp:Label runat="server" ID="lblHidden" Text='<%# (Eval("[ID]") )%>' Visible="false" />
																		<asp:Button runat="server" ID="btnEdit" Text="Edit" OnClick="btnReconfigure_Click" />
																		<asp:Button runat="server" ID="btnDelete" Text="Delete" OnClick="btnDelete_Click"
																			OnClientClick='if (!confirm(g_str_CONFIRM_ValidateAnswer)) return false;' />
																	</div>
																</td>
															</tr>
														</ItemTemplate>
														<FooterTemplate>
															</table>
														</FooterTemplate>
													</asp:Repeater>
												</div>
											</td>
										</tr>
									</ItemTemplate>
									<FooterTemplate>
										</table>
									</FooterTemplate>
								</asp:Repeater>
							</div>
						</fieldset>
					</ContentTemplate>
				</ajaxToolKit:TabPanel>
				<ajaxToolKit:TabPanel runat="server" ID="TabPanel4" HeaderText="<%$ Resources:GridView, ReportDisplay %>"
					Visible="false">
					<ContentTemplate>
						<h2 class="RptTitle">
							<asp:Label ID="lblRptName2" runat="server"></asp:Label></h2>
						&nbsp; &nbsp;<asp:Label ID="lblReportTime" runat="server" CssClass="Explicatii" />
						&nbsp; &nbsp;<asp:Label ID="lblRptID" runat="server" CssClass="Explicatii" Style="display: none"></asp:Label>
						<br />
						<span class="Explicatii">
							<asp:Label ID="lblDescription2" runat="server"></asp:Label></span> &nbsp; &nbsp;<asp:Label
								ID="lblCriterias" runat="server" CssClass="Explicatii"></asp:Label>
						<br />
						<br />
						<cc1:ExtendedGridView runat="server" ID="GridViewReportDetails" UseDefaultStyle="true"
							AllowSorting="true" TranslateColumnHeaders="true" EnableFilter="true" EnablePageSize="true"
							EnableExport="true" EnableExportPDF="true" />
						<asp:Label ID="lblExplanations" runat="server" CssClass="Explicatii" />
					</ContentTemplate>
				</ajaxToolKit:TabPanel>
			</ajaxToolKit:TabContainer>
			<asp:Button ID="btnReconfigure" runat="server" Style="display: none" />
			<ajaxToolKit:ModalPopupExtender ID="modalReconfigure" runat="server" TargetControlID="btnReconfigure"
				PopupControlID="pnlReconfigure" CancelControlID="CancelButtonReconfigure" BackgroundCssClass="modalBackground"
				PopupDragHandleControlID="pnDragHandleSelectionReconfigure">
			</ajaxToolKit:ModalPopupExtender>
			<asp:Panel ID="pnlReconfigure" runat="server" CssClass="modalPopup" Style="display: none;"
				Width="990px">
				<asp:Table runat="server" ID="Table1" Style="background-color: #DDDDDD; border: solid 1px Gray;
					width: 990px">
					<asp:TableRow>
						<asp:TableCell Width="100%" HorizontalAlign="Center">
							<asp:Panel runat="server" ID="pnDragHandleSelectionReconfigure" Style="cursor: move;">
								<b>Editeaza Raport</b>
							</asp:Panel>
						</asp:TableCell>
						<asp:TableCell>
							<asp:Image ID="CancelButtonReconfigure" AccessKey="c" runat="server" ImageUrl="~/Images/Tools/gr_del_line.jpg"
								Style="cursor: pointer" title="<%$ Resources:DatabaseStrings, Close %>" />
						</asp:TableCell>
					</asp:TableRow>
				</asp:Table>
				<br />
				<asp:UpdatePanel ID="UpReconfigure" runat="server" UpdateMode="Conditional">
					<ContentTemplate>
						<table>
							<tr>
								<td valign="top">
									<fieldset style="padding: 2px 2px 2px 2px;">
										<legend title="">Date generale:</legend>
										<div>
											<table>
												<tr>
													<td>
														<asp:Label ID="lblNameRec" runat="server" Text="Nume raport:" />
													</td>
													<td>
														<asp:TextBox ID="txtNameRec" runat="server" Text="" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblDatabaseRec" runat="server" Text="Nume baza de date:" />
													</td>
													<td>
														<asp:TextBox ID="txtDatabaseRec" runat="server" Text="" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblProcedureRec" runat="server" Text="Nume procedura:" />
													</td>
													<td>
														<asp:TextBox ID="txtProcedureRec" runat="server" Text="" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblCategoryRec" runat="server" Text="Categorie raport:" />
													</td>
													<td>
														<asp:DropDownList ID="drpCategoryRec" runat="server" Width="100%" />
													</td>
												</tr>
											</table>
										</div>
									</fieldset>
								</td>
								<td valign="top">
									<fieldset style="padding: 2px 2px 2px 2px;">
										<legend title="">Setari coloane:</legend>
										<div>
											<table>
												<tr>
													<td>
														<asp:Label ID="lblColumnNameRec" runat="server" Text="Nume coloane raport:" />
													</td>
													<td>
														<asp:TextBox ID="txtColumnNameRec" runat="server" TextMode="MultiLine" Height="30px" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblEnableColumnSumRec" runat="server" Text="Activeaza Coloana Suma:" />
													</td>
													<td>
														<asp:CheckBox ID="chkEnableColumnSumRec" runat="server" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblColumnSumRec" runat="server" Text="Suma pe coloanele:" />
													</td>
													<td>
														<asp:TextBox ID="txtColumnSumRec" Enabled="true" runat="server" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblColumnFormulaRec" runat="server" Text="Activeaza Coloana Formula:" />
													</td>
													<td>
														<asp:CheckBox ID="chkColumnFormulaRec" runat="server" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblFormulaRec" runat="server" Text="Nume coloane formula:" />
													</td>
													<td>
														<asp:TextBox ID="txtFormulaRec" Enabled="true" runat="server" />
													</td>
												</tr>
											</table>
										</div>
									</fieldset>
								</td>
								<td valign="top">
									<fieldset style="padding: 2px 2px 2px 2px;">
										<legend title="">Setari avansate:</legend>
										<div>
											<table>
												<tr>
													<td>
														<asp:Label ID="lblColumnSpanRec" runat="server" Text="Activeaza span coloana:" />
													</td>
													<td>
														<asp:CheckBox ID="chkColumnSpanRec" runat="server" AutoPostBack="true" OnCheckedChanged="CheckSpanRec_Clicked" />
													</td>
												</tr>
												<tr id="trDetaliiColSpanRec" runat="server" visible="false">
													<td colspan="2">
														<ul>
															<li>Varianta statica: enumera doar coloanele care se impart in 2; de exemplu, pentru
																un tabel "1 | [2- | -3] | 4 | [5- | -6]", codul va fi "2;5". </li>
															<li>Varianta dinamica: pentru fiecare coloana impartita, detaliaza numarul de subcoloane.
																Codul functional echivalent pentru tabelul de mai sus ar fi "2:2;5:2". </li>
														</ul>
													</td>
												</tr>
												<tr valign="top">
													<td>
														<asp:Label ID="lblColumnSpanEnumerationRec" runat="server" Text="Span pe coloanele:" />
													</td>
													<td>
														<asp:TextBox ID="txtColumnSpanEnumerationRec" Enabled="true" runat="server" />
														<asp:Label ID="labelDetaliiColSpanRec" runat="server" Visible="false">
															<br />
															<font style="color: Red">*Ex: <b>2</b><i>:11</i>;<b>15</b><i>:3</i>;</font>
														</asp:Label>
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblSpanTitleRec" runat="server" Text="Nume coloane span:" />
													</td>
													<td>
														<asp:TextBox ID="txtSpanTitleRec" Enabled="true" runat="server" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblMultipleRec" runat="server" Text="Activeaza multi-raport:" />
													</td>
													<td>
														<asp:CheckBox ID="chkMultiReportsRec" runat="server" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblHiddenRec" runat="server" Text="Ascunde coloanele:" />
													</td>
													<td>
														<asp:TextBox ID="txtHiddenColumnsRec" runat="server" />
													</td>
												</tr>
											</table>
										</div>
									</fieldset>
								</td>
							</tr>
						</table>
						<table>
							<tr>
								<td valign="top">
									<fieldset style="padding: 2px 2px 2px 2px;">
										<legend title="">Editeaza raport:</legend>
										<div>
											<table>
												<tr>
													<td>
														<asp:Label ID="lblHeaderRec" runat="server" Text="Header:" />
													</td>
													<td>
														<asp:TextBox ID="txtHeaderRec" runat="server" TextMode="MultiLine" Height="30px"
															Width="500" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblTitleRec" runat="server" Text="Title:" />
													</td>
													<td>
														<asp:TextBox ID="txtTitleRec" runat="server" TextMode="MultiLine" Height="30px" Width="500" />
													</td>
												</tr>
												<tr>
													<td>
														<asp:Label ID="lblFooterRec" runat="server" Text="Footer:" />
													</td>
													<td>
														<asp:TextBox ID="txtFooterRec" runat="server" TextMode="MultiLine" Height="30px"
															Width="500" /><br />
														<font style="color: Red">*Pentru a intrerupe randul folositi &b</font><br />
														<font style="color: Red">*Pentru a introduce spatiu folositi &s</font>
													</td>
												</tr>
											</table>
										</div>
									</fieldset>
								</td>
							</tr>
						</table>
						<div align="center">
							<cc2:CustomButton ID="btnSave" runat="server" Text="<%$ Resources:DatabaseStrings, btn_Save %>"
								OnServerClick="btnUpdateReport_Click" />
						</div>
					</ContentTemplate>
				</asp:UpdatePanel>
			</asp:Panel>
		</ContentTemplate>
	</asp:UpdatePanel>
	<script src="../Scripts/Reports.js" type="text/javascript"></script>
	<script type="text/javascript">
		var g_str_CONFIRM_ValidateAnswer = '<% =Resources.DatabaseStrings.CONFIRM_DeleteReport.ReplaceApostrophe() %>';
		var g_str_txtStart = '<% =txtStart_Date.ClientID %>';
		var g_str_txtEnd = '<% =txtEnd_Date.ClientID %>';

		function TabContainer1_ClientActiveTabChanged(sender, e) {
			if (sender.get_activeTabIndex() == 0)
				$get('<% =txtLastTab.ClientID %>').value = sender.get_activeTabIndex();
			else
				__doPostBack('<% =TabContainer1.UniqueID %>', sender.get_activeTabIndex());
		}

		function ShowReportExtended() {
			var aURL = 'RptList.aspx';
			var separator = '?';
			var last = nParamsCount[nParamsCount.length - 1];
			for (var i = paramName.length - last; i < paramName.length; i++) {
				aURL += separator + paramName[i] + '=' + paramValue[i];
				separator = '&';
			}
			//alert(aURL);

			var sOptions = 'toolbar=1,location=1,status=1,menubar=1,scrollbars=1,resizable=1';
			sOptions = sOptions + ',width=' + (screen.availWidth - 10).toString();
			sOptions = sOptions + ',height=' + (screen.availHeight - 152).toString();
			sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';
			var aWinName = '_blank';
			var wOpen = window.open('', aWinName, sOptions);
			if (wOpen != null)
				wOpen.location = aURL;
		}

	</script>
</asp:Content>
